<template>
    <div class="recomend-card">
        <div class="left">
            <van-icon name="user-circle-o" />
        </div>
        <div class="right">
            <div class="user-box">
                <span class="user-name">{{user.nick ? user.nick : '匿名用户'}}</span>
                <span class="user-rep">{{rep.goodReputationStr }}</span>
            </div>
            <div class="good-data">
                <span>{{rep.dateReputation}}</span>
                <div class="sku-box">
                    <span>选择规格：</span>
                    
                    <div v-html="rep.goodsName"></div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        rep: Object,
        user: Object
    }
}
</script>

<style scoped lang="scss">
.recomend-card {
    width: 100%;
    background-color: #fff;
    display: flex;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    .left {
        font-size: 120px;
        padding: 0 30px;
    }
}
.user-box {
    margin-bottom: 30px;
    .user-name {
        font-size: 28px;
        display: inline-block;
        vertical-align: middle;
    }
    .user-rep {
        display: inline-block;
        width: 70px;
        text-align: center;
        height: 50px;
        line-height: 50px;
        background-color: #B7282E;
        color: #fff;
        border-radius: 6px;
        font-size: 26px;
        margin-left: 30px;
        vertical-align: middle;
    }
}
.good-data {
    display: flex;
    width: 100%;
    font-size: 24px;
    color: #888;
    span {
        display: block;
        width: 150px;
        line-height: 40px;
    }
    .sku-box {
        display: flex;
        width: 360px;
        align-items: baseline;
        line-height: 40px;
        margin-left: 40px;
    }
}
</style>